<?php

require_once(RL_LIB_DIR . '/extras/db/PostgreSQLProvider.class.php');

class NTRSDatabase extends PostgreSQLProvider {

    protected function connect () {

        static $conn;

        if ($conn === null) {

            $conn = pg_connect('host=' . NTRS_DB_HOST . ' user=' . NTRS_DB_USER . ' password=' . NTRS_DB_PASS . ' dbname=' . NTRS_DB_NAME);

        }

        return $conn;

    }

}